﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TradeTestWeb.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="Scripts/jquery-1.4.1-vsdoc.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#url").val(getvalue("url"));
            $("a[key='trade']").each(function () {
                $(this).click(function () {
                    setvalue("url", $("#url").val());
                    setvalue("yb", $("#ddlylbxid").val());
                    window.open("Default.aspx/tradecall?ybname=" + $("#ddlylbxid").val() + "&jyname=" + $(this).attr('v') + "&url=" + getvalue("url") + "&t=" + Math.random());
                });
            });

            $("img[k='xmledit']").each(function () {
                $(this).click(function () {
                    setvalue("file", $(this).attr("d"));
                    window.open("editor.aspx?file=" + getvalue("file") + "&yb=" + getvalue("yb"));
                });
            });
        });

        function goto(t) {
            setvalue("yb", $("#ddlylbxid").val());
            if (t == "1") {
                window.open("renyuanxx.aspx");
            } else {
                window.open("renyuanxx.aspx");
            }
        }

        function setvalue(name, value) {
            window.localStorage[name] = value;
        }
        function getvalue(name) {
            return window.localStorage[name];
        }
    </script>
    <style type="text/css">
        .dttable
        {
            width: 95%;
            border: #c4d9ee 1px solid;
            border-collapse: collapse;
            vertical-align: middle;
            margin-top: 5px;
            margin-right: auto;
            margin-left: auto;
            margin-bottom: 5px;
        }
        .dttable td
        {
            width: 50%;
            padding-left: 8px;
            padding-top: 10px;
            padding-bottom: 8px;
            border-top: #c4d9ee 1px solid;
            border-left: #c4d9ee 1px solid;
        }
        .dttable td:hover
        {
            background-color: #c4d9DD;
        }
        a
        {
            text-decoration: none;
            padding-right: 10px;
        }
        a:hover
        {
            font-weight: bold;
        }
        .datagrid-body
        {
            margin: 0;
            padding: 0;
            overflow: auto;
        }
        .btnedit
        {
            cursor: pointer;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="datagrid-body">
        <table class="dttable">
            <tr style="text-align: left;">
                <th colspan="2" style="padding: 10px 10px 10px 18px;">
                    <input id="url" type="text" name="url" value="127.0.0.1" style="width: 200px;" />
                    <img src="设置.png" alt="Options" />
                    <asp:DropDownList runat="server" ID="ddlylbxid" OnSelectedIndexChanged="ddlylbxid_SelectedIndexChanged"
                        AutoPostBack="True" Width="200">
                    </asp:DropDownList>
                    <a href="javascript:goto('1');">门诊收费</a> <a href="javascript:goto('2');">住院收费</a>
                </th>
            </tr>
            <tr>
                <td colspan="2" style="background-color: #c4d9ee;">
                    <span style="color: Blue; font-weight: bold;">交易入参列表</span>
                </td>
            </tr>
            <asp:Repeater runat="server" ID="repparams">
                <ItemTemplate>
                    <tr>
                        <td>
                            <a key="trade" href="javascript:;" v='<%# Eval("Name") %>'>
                                <%# Eval("Name") %></a>
                            <img k="xmledit" src="编辑.png" class="btnedit" alt="Editor" d="<%# Eval("Name") %>" />
                        </td>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <td>
                        <a key="trade" href="javascript:;" v='<%# Eval("Name") %>'>
                            <%# Eval("Name") %></a>
                        <img k="xmledit" class="btnedit" src="编辑.png" alt="Editor" d="<%# Eval("Name") %>" />
                    </td>
                    </tr></AlternatingItemTemplate>
            </asp:Repeater>
        </table>
    </div>
    <div style="text-align: center; width: 100%; padding-top: 30px; font-family: @Tahoma;
        color: Gray;">
        MediSIIM.WebTester Copyright ⓒ SWSoft Co.,Ltd. All Right Reserved. 2009-2013
    </div>
    </form>
</body>
</html>
